<html>

	<head>
		<title>快递管理</title>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
		<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">

		<link href="../../css/skin/default/style.css" rel="stylesheet" type="text/css" />
		<link rel="stylesheet" href="../../css/dialog.css">
		<link href="../../js/lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />

		<script src="../../js/lib/jquery/jquery-1.10.2.min.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>

		<script src="../../js/lib/ligerUI/js/plugins/ligerPopupEdit.js"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerLayout.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerForm.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerCheckBox.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerComboBox.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerRadio.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerTextBox.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerSpinner.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerTree.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerDrag.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerResizable.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerTip.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerMenu.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerToolBar.js" type="text/javascript"></script>
		<script src="../../js/JS/XHD.js" type="text/javascript"></script>
		<script src="../../js/lib/jquery.form.js" type="text/javascript"></script>
		<script src="../../js/lib/json2.js" type="text/javascript"></script>
		<script src="../../js/dialog.js"></script>
		<script src="../../js/constants.js" type="text/javascript"></script>
		<script src="../../js/api.js" type="text/javascript"></script>

		<script type="text/javascript">
			var manager;
			$(document).hover(parent.hindMenu);
			var token = $api.getStorage("token");
			var yurl = BaseUrl + "Express";
			$(function() {
				var url = yurl + "?token=" + $api.getStorage("token")+"&key=";

				manager = $("#maingrid4").ligerGrid({
					columns: [{
							display: '编号',
							name: 'ID',
							width: 80
						},
						{
							display: '全称',
							name: 'FullName',
							width: 280,
							align: "left"
						},
						{
							display: '名称',
							name: 'Express',
							width: 120
						},
						{
							display: '状态',
							name: 'IsUser',
							width: 120,
							render: function(rowdata, rowindex, value) {
								if(rowdata.IsUser == true) return "正在使用";
								else return "已暂停";
							}
						},
						{
							display: '优先级',
							name: 'Morder',
							width: 100
						},
						{
							display: '创建时间',
							name: 'CreateDate',
							minWidth: 120,
							type: 'date'
						}
					],
					method: 'get',
					dataAction: 'local',
					url: url,
					width: '100%',
					height: '95%',
					usePager: false, //是否分页  
					onDblClickRow: function(data, rowindex, rowobj) {
						parent.saveInfo(data, cmd);
						if(isEmpty(ischild) || ischild != '1') {
							parent.$.ligerDialog.close();
							parent.$(".l-dialog,.l-window-mask").remove();
						}
					}
				});
			});

			function f_save() {
				return manager.getSelectedRow();
			}

			function doSearch() {
				
					var key = $("#txtKeywords").val();
					var url = yurl + "?token=" + $api.getStorage("token")+"&key="+key;
 					manager.GetDataByURL(url);
				
			}

			function f_reload() {
				manager.loadData(true);
			};
		</script>

	</head>

	<body class="mainbody">
		<form id="form1" onsubmit="return false">
			<div>
				<div class="toolbar-wrap">
					<div  class="toolbar">
						<div class="r-list">
							<input type="text" ID="txtKeywords" placeholder='名称' class="keyword" />
							<a class='btn-search' onclick='doSearch();' style="margin-right:10px;">搜索</a>

						</div>

					</div>
				</div>
				<div id="maingrid4" style="margin: 0px;background:#fff;"></div>
			</div>
		</form>

	</body>

</html>